<template>

<div class="g_box_con" style="padding:20px;">

	<Form  :label-width="110" style="width: 100%" inline>
	
		<FormItem label="自定义名称：">
			<Input v-model="info.name" ></Input>
		</FormItem>
		<FormItem label="币种：">
			<Select v-model="info.bz" style="width:150px" >
				<Option value="人民币" >人民币</Option>
				<Option value="港币" >港币</Option>
				<Option value="美金" >美金</Option>
			</Select>
		</FormItem>
		<FormItem label="自定义金额：">
			<Input v-model="info.exchange_rate" ></Input>
		</FormItem>
		<!--Button style="margin-left: 20px;" @click="handelAddRule(name,classRule,money)">添加</Button-->
	</Form>
	

	<!--div style="padding-left: 110px;"><Button @click="handleAdd">添加横向表头</Button></div-->
</div>

</template>

<script>

import Wcore from '@/libs/common';
export default {
    data () {
		let self = this;
        return {
			info:{
				name:'',
				bz:'',
				exchange_rate:''
			}
        };
	},
	created(){
		var y_data = Wcore.getData('a_ylist');
		if(y_data){
			var ls_data = this._getData(y_data);
			this.info = ls_data.info;
		}
	},
    props: ['ruleList','addList','hTable'],
    watch: {
		ruleList(val){
			this.ruleList = val;
		},
		addList(val){
			this.addList = val;
		},
		hTable(val){
			this.hTable = val;
		},
		name(val){
			console.log(val);
			this.$emit('input',this.name);
		},
		classRule(val){
			console.log(val);
			this.$emit('handleRule',this.classRule);
		},
	},
	methods:{
		get_data(){
			return this.info;
		},
		set_data(data){
			this.info = data;
		}
	}
};
</script>
<style scoped>

</style>